<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<h2>Rechercher un Tutoriel</h2>

<p>
    <?php
    echo $this->Form->create('');
    echo $this->Form->input('valSearch');
    
    
    echo $this->Form->end('search');
     //Ordonné par hasard, date, note, nombre de vue
    ?>
</p>


<?php

if (!empty($results)){
    foreach ($results as $result){
    ?>
    <div class="tutorial">
        <h4 class="title"><?php echo $this->Display->usersVideoLink($result['UsersVideo']);?></h4>
    </div>
    <?php
    }
}

?>